#ifndef __LENGTH_H__
#define __LENGTH_H__

#include <iostream>

class Unit;
class UnitFormat;

typedef int UnitAmount;

class Length
{
    Length(const UnitAmount&, const Unit &);

    bool operator==(const Length&) const;

    bool operator!=(const Length&) const;

    Length operator+(const Length&) const;

    void
    output(std::ostream&, const UnitFormat&) const;

private:
    UnitAmount valueMinUnit_m;
};

#endif

